class Student(object):
	def __init__(self):
		self.name = 'michael'
		
	def __getattr__(self,attr):
		if attr=='score':
			return 99
		if attr=='age':
			return lambda: 25
		raise AttributeError('\'Student\' object has no attribute  \'%s\'' % attr)

s = Student()
print(s.name)
print(s.score)
print(s.age())

print(s.grade)
		